package com.txzt.gaea.provide.dto;

import com.txzt.base.core.RtnInfo;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang.StringUtils;

import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class InformationTypeInfoAddDTO implements Serializable {

    /**
     * 名称
     */
    private String informationTypeName;


    public RtnInfo checkValid() {
        if (StringUtils.isBlank(this.getInformationTypeName()))
            return RtnInfo.PARAM_MISSING;
        return RtnInfo.SUCCESS;
    }
}
